package com.xbongbong.pro.index.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.index.pojo.IndexBoardChartSavePojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @description: 保存首页看板下指标配置
 * @Author: hongxiao
 * @date: 2019-02-27 09:27
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class IndexBoardChartSaveConfigDTO extends BaseDTO {
    private static final long serialVersionUID = -3502461715864183135L;
    /**
     * 对应用报表分类id--只有系统分类有此看板设置
     */
    @NotNull(message = "{dto.msg.indexBoardChartSaveConfig.chartCategoryId.NotNull}")
    private Long chartCategoryId;
    /**
     * 图表展示类型：3柱形图，4折线图，10表格
     */
    @NotNull(message = "{dto.msg.indexBoardChartSaveConfig.showType.NotNull}")
    private Integer showType;
    /**
     *  显示的看板指标id
     */
    @NotEmpty(message = "{dto.msg.indexBoardChartSaveConfig.enableList.NotEmpty}")
    @Size(min = 1, message = "{dto.msg.indexBoardChartSaveConfig.enableList.Size}")
    private List<IndexBoardChartSavePojo> enableList;
    /**
     * 隐藏的看板指标id
     */
    private List<IndexBoardChartSavePojo> disableList;

    private Long homePageId;
}
